package com.hengxinguotong.hxgtwygsp.ui.supervisePhone;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hengxinguotong.hxgtwygsp.R;
import com.hengxinguotong.hxgtwygsp.model.SupervisePhoneBean;

import java.util.List;

/**
 * Created by CS-Yong
 * 2019/8/8  17:35
 */
public class SupervisePhoneAdapter extends BaseQuickAdapter<SupervisePhoneBean, BaseViewHolder> {
    public SupervisePhoneAdapter(int layoutResId, @Nullable List<SupervisePhoneBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SupervisePhoneBean item) {
        helper.setText(R.id.tv_supervise_unit,item.getName());
        helper.setText(R.id.tv_supervise_phone,item.getPhone());
    }
}
